extends "../yanzhan-2/yanzhan-2.gd"

func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("射程提高15，离目标越远，伤害越高", "神射手")
	
func _onAtkChara(atkInfo):
	._onAtkChara(atkInfo)
	if atkInfo.atkType == sys.AtkType.GUN:
		var r = cellRan(atkInfo.hitCha.cell, cell) * 0.2
		atkInfo.factor += r

func _onBattleStart():
	._onBattleStart()
	addBuff(b_sniper.new())

#神射手
class b_sniper:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		att.atkRan = 15		
		id = "b_sniper"	
		dispel = 2